/* 换肤弹框样式 */
.skin-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.skin-modal {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.skin-modal-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.skin-modal-header h3 {
    color: white;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.skin-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skin-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.skin-modal-content {
    padding: 30px;
    background: white;
    max-height: calc(80vh - 100px);
    overflow-y: auto;
}

/* 状态显示区域 */
.skin-status {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.skin-status-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.skin-status-label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.skin-color-preview {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.skin-status-name {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

/* 分离的衣服和裤子区域 */
.skin-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.skin-section h4 {
    margin: 0 0 20px 0;
    color: #495057;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 颜色选择区域 */
.skin-selection h4 {
    margin: 0 0 20px 0;
    color: #495057;
    font-size: 1.2rem;
    font-weight: 600;
}

.skin-color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.skin-color-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: #f8f9fa;
}

.skin-color-option:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.skin-color-option.selected {
    border-color: #667eea;
    background: #e3f2fd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.skin-color-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.skin-color-option.selected .skin-color-circle {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.skin-color-name {
    font-size: 12px;
    color: #495057;
    font-weight: 500;
    text-align: center;
}

/* 操作按钮区域 */
.skin-modal-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.skin-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.skin-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.skin-btn-restore {
    background: #6c757d;
    color: white;
}

.skin-btn-restore:hover:not(:disabled) {
    background: #5a6268;
    transform: translateY(-1px);
}

.skin-btn-group {
    display: flex;
    gap: 10px;
}

.skin-btn-cancel {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.skin-btn-cancel:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.skin-btn-apply {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.skin-btn-apply:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .skin-modal {
        width: 95%;
        margin: 20px;
    }

    .skin-modal-content {
        padding: 20px;
    }

    .skin-status {
        flex-direction: column;
        gap: 15px;
    }

    .skin-color-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .skin-modal-actions {
        flex-direction: column;
        gap: 15px;
    }

    .skin-btn-group {
        width: 100%;
    }

    .skin-btn-group .skin-btn {
        flex: 1;
    }
}